<%--
  Created by IntelliJ IDEA.
  User: Kohler
  Date: 2022/11/23
  Time: 13:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>添加座位</title>
  <link rel="stylesheet" type="text/css" href="../css/common.css"/>
  <link rel="stylesheet" type="text/css" href="../css/main.css"/>
  <link href="https://cdn.staticfile.org/layui/2.7.6/css/layui.css" rel="stylesheet">
  <script src="https://cdn.staticfile.org/layui/2.7.6/layui.js"></script>
  <script type="text/javascript">
    layui.use('laydate', function(){
      var laydate = layui.laydate;
      laydate.render({
        elem: '#startTime'
        ,type: 'time'
        ,min: '07:30:00'
        ,max: '21:30:00'
      });
      laydate.render({
        elem: '#startDate',
        type: 'date',
        trigger:"click",
        min:-0,
        max:1
      });
      laydate.render({
        elem: '#endTime'
        ,type: 'time'
        ,min: '07:30:00'
        ,max: '21:30:00'
      });
      laydate.render({
        elem: '#endDate',
        type: 'date',
        trigger:"click",
        min:-0,
        max:1
      });
    });
  </script>
</head>
<body>
<%@include file="./studentSidebar.jsp"%>
<div class="main-wrap">

  <div class="crumb-wrap">
    <div class="crumb-list">
      <i class="icon-font"></i>
      <a href="studentManage.jsp">首页</a>
      <span class="crumb-step">&gt;</span>
  </div>
  <div class="result-wrap">
    <div class="result-content">
      <form action="doSeatReserve" method="post" id="myform"  >
        <input type="hidden" name="seatTno" value="${tno}">
        <input type="hidden" name="tsquare" value="${tsquare}">
        <input type="hidden" name="tfloor" value="${tfloor}">

        <table class="insert-tab" width="100%">
          <tbody><tr>
          </tr>
          <tr>
            <td>
              <select name="state" id="tstate"  hidden class="required">
                <option value="已预约" selected>已预约</option>
              </select>
            </td>
          </tr>
          <tr>
            <th width="120"><i class="require-red">*</i>开始日期和时间</th>
            <td>
              <div class="layui-form">
                <div class="layui-form-item">
                  <div class="layui-inline">
                    <label class="layui-form-label">开始日期</label>
                    <div class="layui-input-inline">
                      <input type="text" class="layui-input" id="startDate" name="startDate" placeholder="2022-11-23">
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-form">
                <div class="layui-form-item">
                  <div class="layui-inline">
                    <label class="layui-form-label">开始时间</label>
                    <div class="layui-input-inline">
                      <input type="text" class="layui-input" id="startTime" name="startTime" placeholder="08:00:00">
                    </div>
                  </div>
                </div>
              </div>
            </td>
          </tr>
          <tr>
            <th width="120"><i class="require-red">*</i>结束日期和时间</th>
            <td>
              <div class="layui-form">
                <div class="layui-form-item">
                  <div class="layui-inline">
                    <label class="layui-form-label">结束日期</label>
                    <div class="layui-input-inline">
                      <input type="text" class="layui-input" id="endDate" name="endDate" placeholder="2022-11-23">
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-form">
                <div class="layui-form-item">
                  <div class="layui-inline">
                    <label class="layui-form-label">结束时间</label>
                    <div class="layui-input-inline">
                      <input type="text" class="layui-input" id="endTime" name="endTime" placeholder="08:00:00">
                    </div>
                  </div>
                </div>
              </div>
            </td>
          </tr>
          <tr>
            <td>
              <input class="layui-btn layui-btn-radius layui-btn-normal" value="提交" type="submit">
            </td>
            <td>
              <input class="layui-btn layui-btn-radius layui-btn-warm" onClick="history.go(-1)" value="返回" type="button">
            </td>
          </tr>
          </tbody></table>
      </form>
    </div>
  </div>

</div>
<!--/main-->
</div>

</body>
</html>
